package com.wfw.provider;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@SpringBootApplication
@EnableEurekaClient
@EnableAutoConfiguration
@RestController
public class WfwProviderApplication {
	Logger logger = LoggerFactory.getLogger(this.getClass());
	public static void main(String[] args) {
		new SpringApplicationBuilder(WfwProviderApplication.class).run(args);
	}
	@RequestMapping("/")
	public String home() {
		logger.trace("trace");
		logger.debug("debug");
		logger.info("info");
		logger.warn("warn");
		logger.error("error");
		return "Hello world";
	}
}
